package test;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;

import org.apache.commons.io.FileUtils;

public class PoiExcelToHtml {
    final static String path = "C:\\Users\\kelvin_xf\\Downloads\\1temp\\";

    public static void main(String args[]) throws Exception {
        InputStream input = new FileInputStream(path + "软件开发任职标准模型20170830 V1.2.xlsx");
        ExcelTransformer excelTransformer = new ExcelTransformer();
        byte[] htmlData = excelTransformer.transforToHtml(".xlsx", input);
        FileUtils.writeByteArrayToFile(new File(path, "软件开发任职标准模型20170830 V1.2.html"), htmlData);
        System.out.println("Success!");
    }
}